package com.beordie.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.beans.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description 路程实体
 * @Date 2021/8/5 19:53
 * @Created 30500
 */

@TableName("route")
public class Route {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("price")
    private Double price;
    @TableField("introduce")
    private String introduce;
    @TableField("flag")
    private String flag;
    @TableField("date")
    private Date date;
    @TableField("is_theme_tour")
    private String isThemeTour;
    private Integer count;
    @TableField("category_id")
    private Integer categoryId;
    private String image;
    @TableField("seller_id")
    private Integer sellerId;
    @TableField("source_id")
    private String sourceId;

    @TableField(exist = false)
    private Category category;
    @TableField(exist = false)
    private Seller seller;

    public Route() {
    }

    public Route(Integer id, String name, Double price, String introduce, String flag, Date date, String isThemeTour, Integer count, Integer categoryId, String image, Integer sellerId, String sourceId, Category category, Seller seller) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.introduce = introduce;
        this.flag = flag;
        this.date = date;
        this.isThemeTour = isThemeTour;
        this.count = count;
        this.categoryId = categoryId;
        this.image = image;
        this.sellerId = sellerId;
        this.sourceId = sourceId;
        this.category = category;
        this.seller = seller;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getIsThemeTour() {
        return isThemeTour;
    }

    public void setIsThemeTour(String isThemeTour) {
        this.isThemeTour = isThemeTour;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Seller getSeller() {
        return seller;
    }

    public void setSeller(Seller seller) {
        this.seller = seller;
    }

    @Override
    public String toString() {
        return "Route{" +
                "name='" + name + '\'' +
                ", category=" + category +
                ", seller=" + seller +
                '}';
    }
}
